FROM adoptopenjdk/openjdk8

WORKDIR /usr/local/zkui

ADD zkui-*.jar zkui.jar
ADD config.cfg config.cfg
ADD start.sh start.sh

RUN chmod +x start.sh

ENV JAVA_OPS "-Xmx 128M -Xms128M"

EXPOSE 9096

ENTRYPOINT [ "/usr/local/zkui/start.sh" ]

# CMD java -jar zkui.jar
# 注意此时 JAVA_OPS 这个环境变量获取不到
# CMD ["nohup","java","-jar","$JAVA_OPS","zkui.jar","&"] 
